<template>
  <div class = "app">
      <h2>我是App组件</h2><br>
      <Student :xiaoxi="msg" :qian = "money" :che= "car"/>
  </div>
</template>

<script>
import Student from './components/Student'
    export default {
        name:'App',
        components:{Student},
        data(){
            return {
                msg:'你要好好努力赚钱呀！！',
                money:10000000,
                car:{
                    name:'奥拓',price:50000,age:3
                }
            }
        },
    }
</script>

<style>
.app{
    background-color: gray;
    padding:20px;
}
</style>